package com.test;

import com.sun.jdi.connect.Transport;

/**
 * @author yulongtian
 * @create 2024-12-28 16:06
 */
public class test {
}
//interface TaskData {
//
//}
//
//class Get implements TaskData {
//    private String a="a";
//}
//
//class Report implements TaskData {
//    private String b="b";
//
//}
//
//interface TaskDataFactory {
//    TaskData createTaskData();
//}
//
//class GetFactory implements TaskDataFactory {
//    @Override
//    public TaskData createTaskData() {
//        return new Get();
//    }
//}
//
//class ReportFactory implements TaskDataFactory {
//    @Override
//    public TaskData createTaskData() {
//        return new Report();
//    }
//}
//
//public class FactoryMethodPatternDemo {
//    public static void main(String[] args) {
//        TaskDataFactory truckFactory = new GetFactory();
//        TaskData taskData = truckFactory.createTaskData();
//
//        TaskDataFactory shipFactory = new ReportFactory();
//        TaskData taskData1 = shipFactory.createTaskData();
//    }
//}